package com.graduation.springbootinit.service;

import com.graduation.springbootinit.common.BaseResponse;
import com.graduation.springbootinit.model.entity.ShopPart.PlatformMonthlyIncome;

import java.math.BigDecimal;
import java.util.List;

public interface PlatformMonthlyIncomeService {
    
    /**
     * 统计并更新指定年月的平台收入数据
     */
    void calculateAndUpdateMonthlyIncome(Integer year, Integer month);
    
    /**
     * 获取指定年月的平台收入数据
     */
    BaseResponse<PlatformMonthlyIncome> getMonthlyIncome(Integer year, Integer month);
    
    /**
     * 获取指定年份的所有月度收入数据
     */
    BaseResponse<List<PlatformMonthlyIncome>> getYearlyIncome(Integer year);
    
    /**
     * 获取指定年月的总佣金收入
     */
    BaseResponse<BigDecimal> getTotalCommission(Integer year, Integer month);
    
    /**
     * 获取指定年月的活跃商铺数
     */
    BaseResponse<Integer> getActiveStoresCount(Integer year, Integer month);
}